FROM centos:7.5.1804

MAINTAINER maoxiaodong

RUN set -x \
    && yum update -y \
    && yum install -y java-11-openjdk java-11-openjdk-devel wget iputils nc  vim libcurl

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /fresh-oss-biz

WORKDIR /fresh-oss-biz

EXPOSE 8002 28002

ADD ./modules/fresh-oss/fresh-oss-biz/build/libs/fresh-oss-biz-1.0.SNAPSHOT.jar ./

CMD sleep 120;java -Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom -jar fresh-oss-biz-1.0.SNAPSHOT.jar
